import request from '@/utils/request'

// 查询进账类别列表
export function listBankIncome(query) {
  return request({
    url: '/supplier/bankIncome/list',
    method: 'get',
    params: query
  })
}

// 查询进账类别详细
export function getBankIncome(id) {
  return request({
    url: '/supplier/bankIncome/' + id,
    method: 'get'
  })
}

// 新增进账类别
export function addBankIncome(data) {
  return request({
    url: '/supplier/bankIncome',
    method: 'post',
    data: data
  })
}

// 修改进账类别
export function updateBankIncome(data) {
  return request({
    url: '/supplier/bankIncome',
    method: 'put',
    data: data
  })
}

// 删除进账类别
export function delBankIncome(id) {
  return request({
    url: '/supplier/bankIncome/' + id,
    method: 'delete'
  })
}

// 导出进账类别
export function exportBankIncome(query) {
  return request({
    url: '/supplier/bankIncome/export',
    method: 'get',
    params: query
  })
}